/*
 * @Descripttion:
 * @Autor: zhouchen
 * @Date: 2020-11-08 15:26:51
 * @LastEditTime: 2020-12-14 21:05:12
 */
// 引入axios | 路径配置
import { AJAX_PATH } from "@/services/config.js";

// 导入 封装的 有权限请求
import { HTTP_LIMITED } from "@/utils/axios.js";

class ZuZhuangHttp extends HTTP_LIMITED {
 

  // 更新出入库表单和物品信息
  updateInOrOutStorageOrderAndGoods(data) {
    return this._post(AJAX_PATH.updateInOrOutStorageOrderAndGoods, data);
  }
  // 删除出入库表单和物品信息
  deleteInOrOutStorageOrderAndGoods(queryPath) {
    return this._get(AJAX_PATH.deleteInOrOutStorageOrderAndGoods + queryPath);
  }
  // 新增出入库表单中的物品信息
  addInOrOutStorageGoods(data) {
    return this._post(AJAX_PATH.addInOrOutStorageGoods, data);
  }
  // 通过单据Id获取出入库表单和物品信息
  getInOrOutStorageOrderAndGoodsInfoById(queryPath) {
    return this._get(
      AJAX_PATH.getInOrOutStorageOrderAndGoodsInfoById + queryPath
    );
  }
}

export { ZuZhuangHttp };
